Skip to content

Conversation

@WhiteElephantIsNotARobot

Summary

This PR adds a user-configurable toggle to control whether the chat view automatically scrolls to the bottom when receiving streamed responses.

Changes

  • Added chat.auto_scroll preference (default: true to maintain existing behavior)
  • Added toggle in General Settings screen with descriptive text
  • Modified Messages.tsx to conditionally use maintainScrollAtEnd based on preference
  • Added translations for all supported languages:
    • English: "Auto-scroll Messages"
    • Simplified Chinese: "自动滚动消息"
    • Traditional Chinese: "自動滾動訊息"
    • Japanese: "メッセージ自動スクロール"
    • Russian: "Автопрокрутка сообщений"

Behavior

  • When enabled (default): Messages automatically scroll to the bottom as new content arrives during streaming
  • When disabled: Users can freely scroll through messages without being forced to the bottom, allowing them to read content as it's generated

Issue

Fixes #265 - Users reported that for models with low TPS (tokens per second), the auto-scroll makes it impossible to read content as it arrives, defeating the purpose of stream output.

🤖 Generated with Claude Code

Adds a new user preference to control whether the chat view automatically
scrolls to the bottom when receiving streamed responses.

Changes:
- Added 'chat.auto_scroll' preference (default: true)
- Added toggle in General Settings screen
- Modified Messages.tsx to conditionally use maintainScrollAtEnd
- Added translations for all supported languages (EN, ZH-CN, ZH-TW, JA, RU)

When disabled, users can freely scroll through messages without being
forced to the bottom as new content arrives - preserving the stream
output's usefulness for reading as content is generated.

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: 生成内容时不要一直向下滚动,不然无法停下来查看内容

1 participant